import QtQuick 2.0

Image {
    source: "assets/background.png"
    Image {
        id: plane
        x: 40; y: 80
        source: "assets/rocket.png"

        // 右移变换
        NumberAnimation on x {
            from: 40
            to: 680
            // 持续时间
            duration: 3000
            // 缓冲曲线
            easing.type: Easing.InOutQuart
            // 无限循环
            loops: Animation.Infinite
        }

        // 角度变换
        NumberAnimation on rotation {
            from: 0
            to: 360
            duration: 3000
            easing.type: Easing.InOutQuart
            loops: Animation.Infinite
        }

        // 缩放变换
        NumberAnimation on scale {
            from: 1
            to: 0
            duration: 3000
            easing.type: Easing.InOutQuart
            loops: Animation.Infinite
        }

        // 透明度变换
        NumberAnimation on opacity {
            from: 1
            to: 0.2
            duration: 3000
            easing.type: Easing.InOutQuart
            loops: Animation.Infinite
        }
    }
}
